package com.woyou.ui.activity.orderdetail;

import android.view.View;

import com.citaq.ideliver.R;
import com.woyou.ui.fragment.ConReceivTimeOrder;

/**
 * 申请取消中状态返回按键命令
 * @author zhou
 *
 */
public class CancelingBackCommand extends BackCommand {

	/** 确认订单的pop **/
	private ConReceivTimeOrder confirmOrderPop;
	
	public CancelingBackCommand(ViewControl view) {
		super(view);
		findView();
		
	}

	@Override
	public void execute() {
		if ( confirmOrderPop!=null ) {
			if ( confirmOrderPop.getVisibility() == View.VISIBLE ) {
				confirmOrderPop.setVisibility(View.GONE);
				confirmOrderPop.clear();
				return;
			} 
		} 
		
		mControllView.back();
		
	}

	@Override
	protected void findView() {
		confirmOrderPop = (ConReceivTimeOrder) mActivity.findViewById(R.id.confirm_order);
		
	}

}
